body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    overflow-x: hidden;
}

.game-container {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: 95vw;
    margin: auto;
}

h1 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 2em;
}

.game-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

canvas {
    border: 2px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 100%;
    height: auto;
}

.game-info {
    min-width: 250px;
    flex: 1;
    max-width: 300px;
}

.score-panel {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.score, .high-score {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: bold;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 12px 25px;
    font-size: 16px;
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

button:active {
    transform: translateY(1px);
}

#pauseBtn {
    background: linear-gradient(145deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

#pauseBtn:hover {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.instructions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
}

.instructions p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .game-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .game-info {
        max-width: 800px;
        width: 100%;
    }
    
    .controls {
        flex-direction: row;
        justify-content: center;
    }
    
    button {
        width: auto;
    }
} 

.level {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: bold;
}

/* 为关卡显示添加特殊样式 */
#level {
    color: #f39c12;
    text-shadow: 0 0 2px rgba(243, 156, 18, 0.3);
} 

#loadingMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
} 

#soundBtn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #2ecc71;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#soundBtn:hover {
    transform: scale(1.1);
    background: #2ecc71;
    color: white;
} 